]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Fix indentation and style
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 22 Aug 2013 18:07:32 +0000 (14:07 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 22 Aug 2013 18:09:04 +0000 (14:09 -0400)
js/ui/popupMenu.js

index dd5b028039aa4d6c3616f562d66726881bcdefc5..e720c672084f8f3af899b0b5d425780490ac294f 100644 (file)
@@ -872,20 +872,20 @@ const PopupSubMenu = new Lang.Class({
                              { _arrow_rotation: 0,
                                height: 0,
                                time: 0.25,
+                               onUpdateScope: this,
+                               onUpdate: function() {
+                                   this._arrow.rotation_angle_z = this.actor._arrow_rotation;
+                               },
                                onCompleteScope: this,
                                onComplete: function() {
                                    this.actor.hide();
                                    this.actor.set_height(-1);
                                },
-                               onUpdateScope: this,
-                               onUpdate: function() {
-                                   this._arrow.rotation_angle_z = this.actor._arrow_rotation;
-                               }
                              });
-            } else {
-                this._arrow.rotation_angle_z = 0;
-                this.actor.hide();
-            }
+        } else {
+            this._arrow.rotation_angle_z = 0;
+            this.actor.hide();
+        }
     },
 
     _onKeyPressEvent: function(actor, event) {